package com.wy.aopproxy;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 类名 TestMethodInterceptor
 * 功能描述 TestMethodInterceptor
 * 开发人 王勇
 * 创建日期 2023-10-27 15:58
 * 负责人 王勇
 * 交接时间 2023-10-27
 */
public class TestMethodInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("before.........");
        Object resObj = invocation.proceed();
        System.out.println("after............");
        return resObj;
    }
}
